<?php
  //Genesis Software Manual - Page 22

  $pdf->AddPage();
  //$pdf->Image('./Genesis/Gen-soft/Gsm-15.png',0,0,210 ,297);
  //add_raster(1);

  $pdf->SetDrawColor(0,0,0);
  $pdf->SetTextColor(0,0,0);
  $pdf->SetFont('arial','',10);
  $pdf->SetLineWidth(0.4);

  set_text_space(4.2);
 
  $margin = array
  (
    'tab_1' => 30,
    'tab_2' => 36,
    'tab_3' => 44,
    'tab_4' => 54,
    'tab_5' => 74,
    'tab_6' => 100
    
  );
  
//======================================================================================================================
  new_line(28);
    $pdf->Bookmark('9. Mode Set Register No. 3',2,current_line() - 10);
    $pdf->Text($margin['tab_2'],current_line(),'9.');
    $pdf->Text($margin['tab_2'] + 6,current_line(),'MODE SET REGISTER NO. 3');
  new_line();
  new_line();
    $pdf->Text($margin['tab_2'] +1,current_line() + 5,'REG. #11');
    gentab_BitField_8($margin['tab_4'],current_line(),14,7,
      array('0','0','0','0','IE2','VSCR','HSCR','LSCR'));
  new_line();
    $pdf->Text($margin['tab_4'],current_line(),'IE2.. .. ..');
    $pdf->Text($margin['tab_5'],current_line(),'1:');
    $pdf->Text($margin['tab_5'] + 4,current_line(),'Enable external interrupt (68000 LEVEL 2)');
  new_line();
    $pdf->Text($margin['tab_5'],current_line(),'0:');
    $pdf->Text($margin['tab_5'] + 4,current_line(),'Disable external interrupt');
  new_line();
  new_line();
    $pdf->Text($margin['tab_4'] + 6,current_line(),'* See INTERRUPT and SYSTEM I/O');
  new_line();
  new_line();
  new_line();
  
  set_text_space(3.8);
    $pdf->Text($margin['tab_2'] + 2,current_line(),'VSCR: V scroll mode');
    $pdf->Text($margin['tab_6'] + 2,current_line(),'HSCR, LSCR: H scroll mode');
  new_line();
    gentab_Start(0,$margin['tab_2'],56);
      gentab_Cell_Add(0,0,14);
      gentab_Cell_Add(0,1,42);
      gentab_Cell_AutoWidth(0);
    gentab_Start(1,$margin['tab_6'],72);
      gentab_Cell_Add(1,0,16);
      gentab_Cell_Add(1,1,14);
      gentab_Cell_Add(1,2,42);
      gentab_Cell_AutoWidth(1);
  new_line();
    gentab_Cell_Text(0,0,'VSCR','C');
    gentab_Cell_Text(0,1,'FUNCTION','L');
    gentab_Cell_Text(1,0,'HSCR','C');
    gentab_Cell_Text(1,1,'LSCR','C');
    gentab_Cell_Text(1,2,'FUNCTION','L');
  new_line();
    gentab_Line(0);
    gentab_Line(1);
  new_line();
    gentab_Cell_Text(0,0,'0','C');
    gentab_Cell_Text(0,1,'FULLSCROLL','L');
    gentab_Cell_Text(1,0,'0','C');
    gentab_Cell_Text(1,1,'0','C');
    gentab_Cell_Text(1,2,'FULLSCROLL','L');
  new_line();
    gentab_Line(0);
    gentab_Line(1);
  new_line();
    gentab_Cell_Text(0,0,'1','C');
    gentab_Cell_Text(0,1,'EACH 2CELL SCROLL','L');
    gentab_Cell_Text(1,0,'0','C');
    gentab_Cell_Text(1,1,'1','C');
    gentab_Cell_Text(1,2,'PROHIBITED','L');
  new_line();
    gentab_End(0);
    gentab_Line(1);
  new_line();
    gentab_Cell_Text(1,0,'1','C');
    gentab_Cell_Text(1,1,'0','C');
    gentab_Cell_Text(1,2,'EACH 1-CELL SCROLL','L');
  new_line();
    gentab_Line(1);
  new_line();
    gentab_Cell_Text(1,0,'1','C');
    gentab_Cell_Text(1,1,'1','C');
    gentab_Cell_Text(1,2,'EACH 1-LINE SCROLL','L');
  new_line();
    gentab_End(1);

  set_text_space(4.4);
   
  new_line();
    $pdf->Text($margin['tab_4'] + 6,current_line(),'* BOTH SCROLL A and B');

  new_line();
  new_line();

//======================================================================================================================
    $pdf->Bookmark('10. Mode Set Register No. 4',2);
    $pdf->Text($margin['tab_2'],current_line(),'10.');
    $pdf->Text($margin['tab_2'] + 6,current_line(),'MODE SET REGISTER NO. 4');
  new_line();
  new_line();
  new_line();
    $pdf->Text($margin['tab_2'] +1,current_line() + 5,'REG. #12');
    gentab_BitField_8($margin['tab_4'],current_line(),14,7,
      array('RS0','0','0','0','S/TE','LSM1','LSM0','RS1'));
  new_line();
    $pdf->Text($margin['tab_4'],current_line(),'RS0.. .. ..');
    $pdf->Text($margin['tab_5'],current_line(),'0:');
    $pdf->Text($margin['tab_5'] + 4,current_line(),'HORIZONTAL 32 CELL MODE');
  new_line();
    $pdf->Text($margin['tab_5'],current_line(),'1:');
    $pdf->Text($margin['tab_5'] + 4,current_line(),'HORIZONTAL 40 CELL MODE');
  new_line();
    $pdf->Text($margin['tab_4'],current_line(),'RS1.. .. ..');
    $pdf->Text($margin['tab_5'],current_line(),'0:');
    $pdf->Text($margin['tab_5'] + 4,current_line(),'HORIZONTAL 32 CELL MODE');
  new_line();
    $pdf->Text($margin['tab_5'],current_line(),'1:');
    $pdf->Text($margin['tab_5'] + 4,current_line(),'HORIZONTAL 40 CELL MODE');
  new_line();
  new_line();
    $pdf->Text($margin['tab_4'] + 6,current_line(),'* You should set same No. in RS0, RS1');
  new_line();
  new_line();
    $pdf->Text($margin['tab_4'] + 12,current_line(),'32 cell 0000 XXX0');
    $pdf->Text($margin['tab_4'] + 12,new_line(),'32 cell 1000 XXX1');
  new_line();
  new_line();
    $pdf->Text($margin['tab_4'],current_line(),'S/TE .. ..');
    $pdf->Text($margin['tab_5'],current_line(),'1:');
    $pdf->Text($margin['tab_5'] + 4,current_line(),'Enable SHADOW and HILIGHT');
  new_line();
    $pdf->Text($margin['tab_5'],current_line(),'0:');
    $pdf->Text($margin['tab_5'] + 4,current_line(),'Disable SHADOW and HILIGHT');
  new_line();
  new_line();
  new_line();

  set_text_space(3.8);
    $pdf->Text($margin['tab_2'] + 2,current_line(),'LSM1, LSM0: Interlace mode setting');
  new_line();
    gentab_Start(2,$margin['tab_2'],90);
    gentab_Cell_Add(2,0,14);
    gentab_Cell_Add(2,1,14);
    gentab_Cell_Add(2,2,66);
    gentab_Cell_AutoWidth(2);
  new_line();
    gentab_Cell_Text(2,0,'LSM1');
    gentab_Cell_Text(2,1,'LSM0');
    gentab_Cell_Text(2,2,'FUNCTION','L');
  new_line();
    gentab_Line(2);
  new_line();
    gentab_Cell_Text(2,0,'0');
    gentab_Cell_Text(2,1,'0');
    gentab_Cell_Text(2,2,'NO INTERLACE','L');
  new_line();
    gentab_Line(2);
  new_line();
    gentab_Cell_Text(2,0,'0');
    gentab_Cell_Text(2,1,'1');
    gentab_Cell_Text(2,2,'INTERLACE','L');
  new_line();
    gentab_Line(2);
  new_line();
    gentab_Cell_Text(2,0,'1');
    gentab_Cell_Text(2,1,'0');
    gentab_Cell_Text(2,2,'PROHIBITED','L');
  new_line();
    gentab_Line(2);
  new_line();
    gentab_Cell_Text(2,0,'1');
    gentab_Cell_Text(2,1,'1');
    gentab_Cell_Text(2,2,'INTERLACE (DOUBLE RESOLUTION)','L');
  new_line();
    gentab_End(2);  


  add_footer($pdf,'02/19/92','15');
?>
